#ifndef COUNTDEVICE_H
#define COUNTDEVICE_H

#include "Device.h"

class CountDevice : public Device
{
public:
	CountDevice(int max = 100, int start = 0);
	~CountDevice();

	virtual int open();
	virtual void close();
	virtual int read();

private:
	int _counter;
	int _min;
	int _max;
	int _increment;
	bool _isOpen;
};

#endif
